package com.wd.live.module_my

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.wd.live.module_base.ui.BaseFragment
import com.wd.live.module_my.databinding.FragmentMyBinding
import com.wd.module_base.ui.BaseViewModel

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
 * A simple [Fragment] subclass.
 * Use the [MyFragment.newInstance] factory method to
 * create an instance of this fragment.
 */
@Route(path = "/module_my/my")
class MyFragment : BaseFragment<BaseViewModel,FragmentMyBinding>() {
    override fun initData() {
        dataBinding.recordingId.setOnClickListener(View.OnClickListener {
            ARouter.getInstance().build("/module_my/recording")
                .navigation()
        })
    }

    override fun getViewModelClass(): Class<BaseViewModel> {
        return BaseViewModel::class.java
    }

    override fun getLayout(): Int {
        return R.layout.fragment_my
    }

}